
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>news</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <script type="text/javascript" src="/js/base.js"></script>
    <style>
        img{
            width: 80%;
            height: auto;
            margin-left: 10%;
        }
    </style>
    <script type="text/javascript">
        EventUtil.addHandler(window, "load", function(){
            var info = {
                n_id : localStorage["n_id"],
            }
            AjaxIO.post("/news/newsSelect", info,
                function(result) {
                    var n_title = getEl("n_title");
                    var n_img = getEl("n_img");
                    var n_content = getEl("n_content");
                    n_title.innerHTML = result.data.computer.n_title;
                    n_img.setAttribute("src", result.data.computer.n_img);
                    n_content.innerHTML = result.data.computer.n_content;
                }
            )
        });
    </script>
</head>
<body>
    <div class="page-group">
        <div class="page page-current">
            <header class="bar bar-nav">
            <a class="back">
                <button class="button button-link button-nav pull-left back">
                    <span class="icon icon-left"></span>
                </button>
            </a>
                <h1 class="title">新闻</h1>
            </header>
            <div class="content">
                <div class="content-padded">
                    <h2 id="n_title"></h2>
                    <img id="n_img">
                    <p id="n_content"></p>
                </div>
            </div>

        </div>
    </div>

    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>

</body>
</html>